<html>
<?php 
include 'connexion_bd.php';
session_start();
$nouvelle=$_POST["choix"];
$requete='SELECT id_nouv,contenu,id_rub,login FROM nouvelles WHERE nom_nouv="'.$nouvelle.'"';
$res=mysql_query($requete);
$tab=mysql_fetch_row($res);
$_SESSION['id_n']=$tab[0];
$texte=$tab[1];
$_SESSION['id_r']=$tab[2];
$_SESSION['login']=$tab[3];

echo '
<form action="envoi.php" method="post">
Titre: 
</br>
<input type="text" name="titre" value="'.$nouvelle.'">
</br>
Modifier la nouvelle : 
</br>
<textarea cols="50" rows="30" name="nouvelle">'.$texte.'</textarea>
</br></br>
<input name="submit" type="submit" value="Envoyer"></form>';
mysql_close (); 
?>
</html>